package com.cp2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class cp2TeacherTest {
	public static void main(String[] args) {
		String xmlPath="/com/cp2/cp2teacher.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		TeacherService teacherService = (TeacherService)applicationContext.getBean("teacherService");
		teacherService.talk();
	}
}
